<template>
  <div>
    <div class="box-border p-12px">
      <div>
        <SubTitle title="字段抽样数据" />
        <div v-if="props.params.samples.length > 0">
          <div v-for="(item, index) in props.params.samples" :key="index" class="sample-item">
            {{ item }}
          </div>
        </div>
        <div v-else> 暂无数据 </div>
      </div>
    </div>
    <div>
      <el-button @click="closeOutDrawer">关闭</el-button>
    </div>
  </div>
</template>
<script lang="ts" setup>
import SubTitle from '@/components/SubTitle/index.vue'

const props = defineProps({
  params: {
    type: Object,
    default: () => {}
  },
  closeOutDrawer: Function
})
console.log('props.params', props.params)
</script>

<style scoped lang="scss">
:deep(.el-table .el-form-item--default) {
  margin-bottom: 0 !important;
}
.sample-item {
  margin-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e8e8;
}
</style>
